var mongoose=require("./db.js");
var Schema = mongoose.Schema;
var UserSchema = new Schema({
    username: { type: String, index: true },           //姓名
    userage: { type: Number,min: 18, max:120},   //年龄
    usersex: {type: String }      //性别
});
module.exports = mongoose.model('Student', UserSchema);//导出